package auctioncentral;

/**
 * The AuthNonProfitUser class represents authorized non-profit contact person user 
 * profiles within the AuctionCentral System.
 * 
 * @author Andres Rosales (acr)
 * @version 02/26/2014 acr
 */
public class AuthNonProfitUser extends AbstractUser { //
	
	/**
	 * The user's ongoing/current event.
	 */
	private String my_current_event;
	
	/**
	 * Constructs and initializes a new instance of the AuthNonProfitUser class.
	 * 
	 * @param the_name The user's name.
	 * @param the_add The user's address.
	 * @param the_num The user's phone number.
	 */
	public AuthNonProfitUser(final String the_name, final String the_add, final String the_num,
	    final String the_current_event) {
		super(the_name, the_add, the_num);
		my_current_event = the_current_event;
	}
	
	/**
	 * Sets the user's current event to the given event.
	 * 
	 * @param the_event The event to be set.
	 */
	public void setCurrEvent(final String the_event) {
		my_current_event = the_event;
	}
	
	 /**
   * gets the user's current event to the given event.
   * 
   */
  public String getCurrEvent() {
    return my_current_event;
  }
  
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
	  String s = "";
	  s += this.my_name + " ";
	  s += this.my_add + " ";
	  s += this.my_num + " ";
	  s += my_current_event + " ";
	  return s;
	}
}
